#!/bin/bash

echo "🕐 开始运行时区测试..."
echo ""

# 检查是否安装了mysql2
if ! npm list mysql2 > /dev/null 2>&1; then
    echo "📦 安装mysql2依赖..."
    npm install mysql2
fi

# 运行测试
echo "🧪 运行时区测试脚本..."
node test-timezone.js

echo ""
echo "✅ 时区测试完成！" 